<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue实例当中的数据、事件和方法</title>
    <script src="vue.js"></script>
</head>
<body>
<div id="root">
    <h1 @click="handleClick" v-text="msg"></h1>
</div>
<script>
    new Vue({
        el:"#root",
        data:{
            msg:"hello",
            number:'<h1>content</h1>'
        },
        methods:{
            handleClick:function () {
               this.msg="world";
            }
        }

    })
</script>
</body>
</html>